//
//  EcgNetReq.h
//  CareRingApp
//
//  Created by Linktop on 2024/9/10.
//

#import <Foundation/Foundation.h>
#import "NetTools.h"

//#import "ConfigModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface EcgNetReq : NSObject


/// 滤波
/// - Parameters:
///   - host:
///   - rowVolArray:
///   - t:
///   - handler:
///   - servernil:
+(void)ecgNetRowWaveFilter:(NSString *)host
          DataArray:(NSArray<NSNumber *> *)rowVolArray
                       Key:(NSString *)key
                        Sn:(NSString *)sn
                       MacAddr:(NSString *)mac
                      Sign:(NSString *)sign
            AndComplated:(void (^)(NSHTTPURLResponse * _Nullable httpResp,  NSDictionary * _Nullable content, NSArray<NSNumber *> * _Nullable processedValues)) handler
            AndServerNil:(void (^)(void))servernil;

/// 计算ecg结论
/// - Parameters:
///   - host:
///   - rowVolArray:
///   - t:
///   - handler:
///   - servernil:
+(void)ecgNetArrhythmia:(NSString *)host
          DataArray:(NSArray<NSNumber *> *)rowVolArray
                    Key:(NSString *)key
                     Sn:(NSString *)sn
                    MacAddr:(NSString *)mac
                   Sign:(NSString *)sign
            AndComplated:(void (^)(NSHTTPURLResponse * _Nullable httpResp,  NSDictionary * _Nullable content, NSArray<NSNumber *> * _Nullable processedValues)) handler
            AndServerNil:(void (^)(void))servernil;

@end

NS_ASSUME_NONNULL_END
